package exam8;

/**
 * @author HB
 * @version 1.0
 * @description
 * @date 2021/6/24
 */
public class Client{
    public static void main(String a[]){
        Color color;
        Pen pen;

        color=(Color)XMLUtil.getBean("color");
        pen=(Pen)XMLUtil.getBean("pen");

        pen.setColor(color);
        pen.draw("鲜花");
    }
}

